package de.nordakademie.wpk.share.core.service;

import java.math.BigDecimal;
import java.util.GregorianCalendar;
import java.util.LinkedHashMap;
import java.util.List;

import de.nordakademie.wpk.share.core.data.Depot;
import de.nordakademie.wpk.share.core.data.Share;
import de.nordakademie.wpk.share.core.data.treeitem.TreeItem;

/**
 * The Interface for the share service.
 * 
 * @author Christian Baumhof
 */
public interface IShareService {

	public TreeItem getShareTree();

	public TreeItem getDepotTree();

	public List<Share> getAvailableShares();

	public void saveOrUpdateDepot(Depot depot);

	public void deleteDepot(Depot depot);

	public Integer getUnusedId();
	
	public Boolean isUnique(String depotName);

	public void refreshData();
	
	public void refreshHistoricData();
	
	public LinkedHashMap<GregorianCalendar, BigDecimal> getHistoricData(String symbol);
}
